package com.hsf.cloudweb.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name="tbl_user_info")
public class UserInfo implements Serializable {

    @Id
    @Column(name="user_id",nullable = false)
    private Long userId;

    @Column(name="user_account",nullable = false)
    private String userAccount;

    @Column(name="user_name",nullable = false)
    private String userName;

    @Column(name="user_cnname")
    private String userCnname;

    @Column(nullable = false)
    private String password;

    @Column(name="phone_num",nullable = false)
    private Long phoneNum;

    @Column(name="family_address")
    private String familyAddress;

    @Column(name="emailAddress")
    private String emailAddress;

    @Column(name="birth_day")
    private Date birthDay;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(Long phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getFamilyAddress() {
        return familyAddress;
    }

    public void setFamilyAddress(String familyAddress) {
        this.familyAddress = familyAddress;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public Date getBirthDay() {
        return birthDay;
    }

    public void setBirthDay(Date birthDay) {
        this.birthDay = birthDay;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public String getUserCnname() {
        return userCnname;
    }

    public void setUserCnname(String userCnname) {
        this.userCnname = userCnname;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "userId=" + userId +
                ", userAccount='" + userAccount + '\'' +
                ", userName='" + userName + '\'' +
                ", userCnname='" + userCnname + '\'' +
                ", password='" + password + '\'' +
                ", phoneNum=" + phoneNum +
                ", familyAddress='" + familyAddress + '\'' +
                ", emailAddress='" + emailAddress + '\'' +
                ", birthDay=" + birthDay +
                '}';
    }
}
